Skip to content

dgb: delegate V36 version-gate sites to core::version_gate SSOT (#148) - #159

Merged
frstrtr merged 1 commit into
masterfrom
dgb/version-gate-delegation
Jun 18, 2026
Merged

dgb: delegate V36 version-gate sites to core::version_gate SSOT (#148)#159
frstrtr merged 1 commit into
masterfrom
dgb/version-gate-delegation

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 18, 2026

Copy link
Copy Markdown
Owner

What

Points DGB per-coin V36 version-gate call sites at the merged core::version_gate SSOT (is_v36_active, #148 @ebfb9609), mirroring the BTC reference adoption site-for-site.

Sites delegated (33, = BTC count)

  • share.hpp x6 — if constexpr (version >= 36)
  • share_tracker.hpp x1 — runtime share_ver gate
  • share_check.hpp x26 — ref-serialization gates, PPLNS-formula select, log guards, constexpr branches

Pure-mechanical / byte-identical

The V36 boundary stays the uniform cross-coin 36; this only re-points the literals at the one SSOT — no semantic change.

  • Only positive >= 36 gate sites delegated.
  • Inverse forms left verbatim, matching BTC: version < 36, share_version <= 35, m_desired_version < 36 (distinct field), and BaseShare<36> template args.
  • Donation-script gate (config_pool) left untouched — that is the separate core::donation delegation (FLAG6), not this task.

No coin-specific divergence found vs core::version_gate (per the #161 inst#4 caution).

Scope

DGB-only. Orthogonal to in-flight #158 (M3 scrypt-digest, touches coin/header_chain + tests).

Verification

  • configure -DCOIN_DGB=ON + build c2pool-dgb + dgb_share_test: EXIT=0
  • dgb_share_test: 5/5 PASS
  • c2pool-dgb --selftest: OK

No self-merge — HOLD for integrator verify-vs-core + operator tap.

Replace DGB per-coin "version >= 36" share-format/consensus gate literals
with core::version_gate::is_v36_active(), mirroring the BTC reference
adoption site-for-site (33 sites: share.hpp x6, share_tracker.hpp x1,
share_check.hpp x26).

Pure-mechanical V37-standardization delegation: the gate boundary stays
the uniform cross-coin 36, behavior byte-identical. Only positive >=36
gate sites are delegated; inverse forms (version < 36, share_version <= 35,
m_desired_version < 36) and BaseShare<36> template args are left verbatim,
matching BTC. Donation-script gate (config_pool) untouched -- that is the
separate core::donation delegation.

Closes the DGB slice of the cross-coin version_gate standardization tail.
@frstrtr
frstrtr merged commit cb40c76 into master Jun 18, 2026
16 checks passed
@frstrtr
frstrtr deleted the dgb/version-gate-delegation branch June 18, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant